package edu.gatech.gro.model;

public class Currency {

	public static final Currency[] ALL = new Currency[] { new Currency(1, "$", "dollar"), new Currency(2, "€", "euro"), new Currency(3, "£", "pound") };

	private final int id;
	private final String symbol;
	private final String name;

	private Currency(int id, String symbol, String name) {
		this.id = id;
		this.symbol = symbol;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public String getSymbol() {
		return symbol;
	}

	public String getName() {
		return name;
	}

	public static String[] allSymbols() {
		String[] r = new String[ALL.length];
		for (int i = 0; i < ALL.length; i++) {
			r[i] = ALL[i].getSymbol();
		}
		return r;
	}
}
